<?php
    include "SuperHTMLDef.php";
	$s = new SuperHTML("new page");
	$s -> setTitle("Email Subscription Form");	
	$s -> buildTop();
	$title = "Enter your details below and click submit";
	$s -> tag("p", $title);
	
	//list form vars
	
	$ol1 = "<ol>";
	$ol2 = "</ol>";
	$lt1 = "<li>";
	$lt2 = "</li><li>";
	$lt3 = "</li>";

	$s->startForm("submit.php", "post", "Contact Details");
	$s->addText($ol1);
	$s->addText($lt1);
	$s->label("First Name");
	$s->textbox("firstName","");
	$s->addText($lt2);
	$s->label("Last Name");
	$s->textbox("lastName","");
	$s->addText($lt2);
	$s->label("Email Address");
	$s->textbox("email","");
	$s->addText($lt2);
	$s->label("Phone");
	$s->textbox("phone","");
	$s->addText($lt3);
	$s->submit();
	$s->addText($ol2);	
	$s->endForm();
	
	print $s->formResults();
	
	$s -> buildBottom();
	print $s -> getPage();
?>
